using System;
using LoggingMagic.Extensions;
using LoggingMagic.Injectors.Helpers;
using LoggingMagic.Injectors.StaticField.Base;
using LoggingMagic.Injectors.StaticField.Parameters;
using Mono.Cecil;

namespace LoggingMagic.Injectors.StaticField.StaticFieldWithMethodName
{
    internal class StaticFieldMethodCallWithMethodNameWithParamsInjector : StaticFieldMethodCallWithParamsInjector
    {
        public StaticFieldMethodCallWithMethodNameWithParamsInjector(ModuleDefinition module, IStaticFieldParameters parameters, MethodParametersToArray parametersToArray)
            : base(module, parameters, parametersToArray)
        {
        }

        protected override string EnteringText(MethodDefinition method)
        {
            return String.Format("{0} - {1}", method.MethodName(), base.EnteringText(method));
        }
    }
}